package com.jingdianjichi.subject.application.convert;

import com.jingdianjichi.subject.application.dto.SubjectLabelDTO;
import com.jingdianjichi.subject.domain.entity.SubjectLabelBO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Description: 标签DTO的转换
 * Copyright: Copyright (c) 2024
 * Create Time: 2024-07-03 15:14
 *
 * @author wanglianyun
 */
@Mapper
public interface SubjectLabelDTOConverter {

    SubjectLabelDTOConverter INSTANCE = Mappers.getMapper(SubjectLabelDTOConverter.class);

    SubjectLabelBO convertSubjectLabelDTOToBO(SubjectLabelDTO subjectLabelDTO);

    List<SubjectLabelDTO> convertBODToTOList(List<SubjectLabelBO> boList);

    List<SubjectLabelDTO> convertBOToLabelDTOList(List<SubjectLabelBO> labelBOList);
}
